﻿using System.Collections.Generic;
using System.Threading.Tasks;

namespace CRM.Services
{
    //海关数据批量导入方法
    public class CustomsDataService : BaseService
    {
        public Task Add<T>(List<T> lists)
        {
            foreach (T t in lists)
            {
                DbContext.Add(t);
            }
            //DbContext.AddRangeAsync(lists);
            return DbContext.SaveChangesAsync();
        }
    }
}
